﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Events
{
    public partial class check_question_status : System.Web.UI.Page
    {
        public int check = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = int.Parse(Request.QueryString["id"]);
            int type = int.Parse(Request.QueryString["type"]);
            var get_detail = new TblEventDetailController().FetchAll().Where(x => x.EventType == type && x.EventId == id);
            if (get_detail.ToList().Count != 0)
                check = 1;
        }
    }
}